Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wallet] Use exit on iOS since we can't restart like Android #1424

Merged
merged 4 commits into from
Oct 23, 2019

Conversation

jeanregisser
Copy link
Contributor

Description

We can't restart on iOS like it's done on Android.
This PRs changes the logic to exit on iOS and displays Quit instead of Restart.

Tested

Manually triggered error, -> saw Error screen -> Pressed 'Quit' -> the app quits ;)

Other changes

N/A

Related issues

Backwards compatibility

Yes

Copy link
Contributor

@cmcewen cmcewen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love just quitting, but I guess this is the best we can do for now. Would love to get a better sense of what corrupts geth chain data

@jeanregisser
Copy link
Contributor Author

I agree with you! I've opened an issue to find a better alternative to this: #1434
If we were able to restart the geth node we wouldn't have to quit (or really only in last resort if we tried multiple times to restart the node and it's still failing).

@codecov
Copy link

codecov bot commented Oct 23, 2019

Codecov Report

Merging #1424 into master will increase coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1424      +/-   ##
==========================================
+ Coverage   67.68%   67.68%   +<.01%     
==========================================
  Files         269      269              
  Lines        8023     8028       +5     
  Branches      553      483      -70     
==========================================
+ Hits         5430     5434       +4     
- Misses       2479     2482       +3     
+ Partials      114      112       -2
Flag Coverage Δ
#mobile 67.68% <75%> (ø) ⬆️
Impacted Files Coverage Δ
packages/mobile/src/app/ErrorScreen.tsx 92.3% <100%> (ø) ⬆️
packages/mobile/src/app/AppLoading.tsx 85.71% <100%> (+0.71%) ⬆️
packages/mobile/src/utils/AppRestart.ts 56.25% <60%> (+6.25%) ⬆️
packages/mobile/src/utils/formatting.ts 89.74% <0%> (ø) ⬆️
packages/mobile/src/identity/reducer.ts 41.66% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2504bc9...7db13a0. Read the comment docs.

@jeanregisser jeanregisser merged commit 98b068c into master Oct 23, 2019
@jeanregisser jeanregisser deleted the jeanregisser/ios-quit-instead-of-restart branch October 23, 2019 11:05
aaronmgdr added a commit that referenced this pull request Oct 24, 2019
* master:
  [Wallet] Wallet can switch between hosted and local node (#1419)
  [Wallet] Prevent error from Avatar when name is missing (#1454)
  [Wallet] Show splash screen until JS is ready on iOS (#1453)
  Use new segment api keys used by both iOS and Android (#1452)
  [Wallet] Don't log all props, which includes i18n (#1445)
  [Helm] Updated the helm package to deploy the upgraded blockscout version (#1129)
  Tiny copy change (#1429)
  [contractkit] SortedOraclesWrapper + tests (#1405)
  [wallet] Refactor leftover thunk to sagas (#1388)
  [Wallet] Fix repeated QR code scanning and related navigation issues (#1439)
  [Wallet] Show the currency values with correct rounding. (#1435)
  [Wallet] Fix firebase initialization error on iOS after reinstalling the app (#1423)
  [Wallet] Use exit on iOS since we can't restart like Android (#1424)
  [Wallet] Update local currency styles and layout (#1325)
  Reset pincode cache if unlock fails (#1430)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error screen button should work and say Quit instead of Restart on iOS
3 participants